package com.guang.testspringmybatis;

import com.guang.testspringmybatis.config.AppConfig;
import com.guang.testspringmybatis.service.ReviewService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author liguang
 * @date 2022/8/24 14:54
 */
public class Test {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext annotationConfigApplicationContext = new AnnotationConfigApplicationContext(AppConfig.class);
        ReviewService reviewService = annotationConfigApplicationContext.getBean(ReviewService.class);
        reviewService.test();
    }
}
